package com.example.demo.controller;

import com.example.demo.entity.userinfo;
import com.example.util.BaseController;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by admin on 2018/9/25.
 */
@RestController
@CrossOrigin
@EnableAutoConfiguration
@RequestMapping("/testboot")
public class TestBootController extends BaseController {
    /**
     *
     */
    @RequestMapping("getuser")
    public userinfo getUser(){
        userinfo user = new userinfo();
        user.setUsername("test");
        return user;
    }

}
